package com.work.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import com.work.Bean.beanA;
import com.work.Bean.beanB;

@Configuration
@ComponentScan("com")
public class BeanConfig {

  @Bean
  public beanA beanA() {
    return new beanA(beanB());
  }

  @Bean
  beanB beanB() {
    return new beanB();
  }
}
